import request from '@/utils/request'

export function login(username, password) {
    return request({
        url: 'manage/admins/verifyLogin',
        method: 'post',
        data: {
            username,
            password
        }
    })
}

export function logout(token) {
    return request({
        url: `user/logout`,
        method: 'post',
        data: {
            token
        },
    })
}
